package com.hmkj.core.api.juhe.bean.epay;

/**
 * 方向盘返回信息model
 * @author Mr.
 * @date 2017/4/19
 */
public class FxpResModel {
    /**
     * 接口返回代码 0表示成功
     */
    public static final Integer SUCCESS = 0;

    /**
     * 接口返回代码 表示登录失效
     */
    public static final Integer NOLOGIN = 1000;
    /**
     * 接口返回代码 -1表示失败
     */
    public static final Integer FAILED = -1;
    /**
     * 接口返回代码，表示未实名
     */
    public static final Integer NO_REALNAME = 1005;
    /**
     * 返回信息
     */
    private String msg;
    /**
     * 返回码  true 正确  false 错误
     */
    private boolean result;
    /**
     * 返回编码
     */
    private int code;
    /**
     * 返回数据
     */
    private Object data = null;

    public FxpResModel(){
    }

    public FxpResModel(String msg, boolean result, Object data){
        this.msg = msg;
        this.result = result;
        this.data = data;
    }

    public FxpResModel(String msg, boolean result, Object data, int code){
        this.msg = msg;
        this.result = result;
        this.data = data;
        this.code = code;
    }

    public FxpResModel(String msg, boolean result){
        this.msg = msg;
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public Object getData() {
        return data;
    }
    public void setData(Object data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
